local boshiwan = fk.CreateSkill {
  name = "boshiwan",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
  ["boshiwan"] = "十万",
  [":boshiwan"] = "锁定技，所有角色距离+1，且你使用杀的次数+1。",
  ["$borenxin1"] = "虎将护身，天险可破。",
}

-- 距离修正：所有人距离+1
boshiwan:addEffect("distance", {
    correct_func = function(self, from, to)
        if from ~= to then
            return -2  -- 距离减少2
        end
        return 0
    end,
})

-- 杀次数上限修正效果
boshiwan:addEffect("targetmod", {
  residue_func = function(self, player, s, scope)
    if player:hasSkill(boshiwan.name) and s.trueName == "slash_skill" and scope == Player.HistoryPhase then
      return 1  -- 杀的使用次数上限+2
    end
    return 0
  end,
})

return boshiwan